<include file="public@header" />
</head>
<style>
    .input-group-addon {
        font-weight: bold;
        background-color: darkolivegreen;
        color: white;
        border: 0px;
    }
</style>

<body>
    <div class="wrap js-check-wrap">
        <ul class="nav nav-tabs">
            <li><a href="{:url('AdminPriceRange/index')}">价格区间管理</a></li>
            <li><a href="{:url('AdminPriceRange/add')}">添加价格区间</a></li>
            <li class="active"><a href="#">编辑价格区间</a></li>
        </ul>
        <form method="post" class="form-horizontal js-ajax-form margin-top-20" action="{:url('AdminPriceRange/editPost')}">

            <div class="form-group">
                <label class="col-sm-2 control-label"><span class="form-required">*</span>价格区间:</label>
                <div class="col-md-2 col-sm-10">
                    <div class="input-group">
                        <input class="form-control" placeholder="最低价格" name="min_price" type="text" value="{$price.min_price}">
                        <span class="input-group-addon">万</span>
                    </div>
                    <div class="input-group" style="margin-top:20px">
                        <input class="form-control" placeholder="最高价格" name="max_price" type="text" value="{$price.max_price}">
                        <span class="input-group-addon">万</span>
                    </div>
                </div>
            </div>
            <div class="col-sm-offset-2 col-sm-10">
                <input type="hidden" class="form-control" name="id" value="{$price.id}">
                <button type="submit" class="btn btn-primary js-ajax-submit">{:lang("SAVE")}</button>
                <a class="btn btn-default" href="__URL__">返回</a>
            </div>
        </form>

    </div>
    <script src="__STATIC__/js/admin.js"></script>
</body>

</html>